package Data;


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class GoodData extends Data {
	
	private String description;
	private double price;
	private double specialPrice;
	private String specialStart;
	private String specialEnd;
	SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); 
	private double number;
	
	
	public GoodData(int id,String des,double p,double spep,String speS,String speE,double num){
		// TODO Auto-generated constructor stub
		ID = id;
		description = des;
		price = p;
		specialPrice = spep;
		number = num;
		specialStart = speS;
		specialEnd = speE;
//		try{
//			specialStart = dateFormat.parse(speS);
//			specialEnd = dateFormat.parse(speE);
//		}catch(ParseException ex){
//			ex.printStackTrace();
//		}
	}
	
	public double getNumber(){
		return number;
	}
	
	public void setNumber(double num){
		number = num;
	}
	
	public String getDescription(){
		return description;
	}
	
	public void setDescription(String des){
		description = des;
	}
	
	public double getPrice(){
		return price;
	}
	
	public void setPrice(double pri){
		price = pri;
	}
	
	public String getSpecialStart(){
		return specialStart;
	}
	
	public void setSpecialStart(String speS){
		specialStart = speS;
	}
	
	public String getSpecialEnd(){
		return specialEnd;
	}
	
	public void setSpecialEnd(String speE){
		specialEnd = speE;
	}
	
	public void setID(int id){
		ID = id;
	}

	public int getID() {
		// TODO Auto-generated method stub
		return ID;
	}
	
	public double getSpecialPrice() {
        return specialPrice;
    }

    public void setSpecPrice(double specPrice) {
        this.specialPrice = specPrice;
    }
}
